package com.ujiaoyu.api.service.impl;

import com.ujiaoyu.api.entity.Course;
import com.ujiaoyu.api.mapper.CourseMapper;
import com.ujiaoyu.api.service.ICourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程表 服务实现类
 * </p>
 *
 * @author ujiaoyu508
 * @since 2020-09-06
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {


    @Override
    public boolean updateSaleCount(Long courseId) {
        return getBaseMapper().updateSaleCount(courseId);
    }

    @Override
    public List<Course> seletCourseList() {
        return getBaseMapper().seletCourseList();
    }

    @Override
    public List<String> selectAllCourseTitle() {
        return getBaseMapper().selectAllCourseTitle();
    }
}
